package com.example.gateway.designPattern.simpleFactory.cgc;


/**
 * @ClassName: FactoryProducer
 * @Description:
 * @Author: YourName
 * @Date: 2025/1/2
 */

public class FactoryProducer {

    public static AbstractFactory getFactory(String choice){
        if(choice.equalsIgnoreCase("bj")){
            return new BjPizzaFactory();
        } else if(choice.equalsIgnoreCase("ld")){
            return new LdPizzaFctory();
        }
        return null;
    }
}
